# -*- coding: utf-8 -*-

import sys
from random import choice

LETTERS = 'ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz'
DIGITS = '23456789'
SPECIFICAL = '!@#$%^&*()'

if len(sys.argv) != 3:
    print("usage: {} <len_pass> <how_many_pass>")
    sys.exit(1)


def gen_passwd(length=20, chars=LETTERS+DIGITS):
    return ''.join([choice(chars) for i in range(length)])


for i in range(int(sys.argv[2])):
    print(gen_passwd(int(sys.argv[1])))
